home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
SCREEN
/
WRITE1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-08-16
|
1KB
|
32 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Demonstration; screen write #1 - performance test
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDEF, EFLIBINI, EFLIBBAS, EFLIBTXT, EFLIBOBJ, EFLIBSCR, CRT;
const Tests = 25;
var X, Y, Count : byte; TestString : string; Timer : TimerObjectType;
begin
TestString:= 'TestString|';
TestString := StringFill (5, TestString);
Timer.Initialize;
{ Perform screen writing tests; write test string on every possible
position on screen horizontally and vertically }
for Count := 1 to Tests do begin
for X := 1 to Screen.ScreenWidth do for Y := 1 to Screen.ScreenHeight do
Screen.WriteXYColor (X, Y, TestString, Random(14)+1, 0);
end;
if Application^.IsInitialized then
Application^.RestoreStartScreen;
Write ('How fast is fast? ');
with Timer do begin WriteLn (StringMS); Intercept; end;
end.